// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import FastClick from 'fastclick'
import router from './router'
import store from './store'
import App from './App'
import http from './utils/http'
import { SERVER_URL } from './config'
import { ToastPlugin, AlertPlugin, LoadingPlugin, LoadMore, ConfirmPlugin } from 'vux'
import Empty from '@/views/components/Empty'
import InfiniteLoading from 'vue-infinite-loading'
Vue.component('infinite-loading', InfiniteLoading)
Vue.component('empty', Empty)
Vue.component('load-more', LoadMore)
Vue.use(ToastPlugin)
Vue.use(AlertPlugin)
Vue.use(LoadingPlugin)
Vue.use(ConfirmPlugin)
Vue.prototype.$http = http
Vue.prototype.$apiUrl = SERVER_URL
FastClick.attach(document.body)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app-box')
